package com.baizhi.controller;


import com.baizhi.annotation.LogAnnotion;
import com.baizhi.entity.BzMenu;
import com.baizhi.service.IBzMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单管理 前端控制器
 * </p>
 *
 * @author xhc
 * @since 2020-09-24
 */
@RestController
@RequestMapping("menu")
public class BzMenuController {
    @Resource
    private IBzMenuService menuService;


    @LogAnnotion(content = "查询菜单数据")
    @GetMapping("selectMenus")
    public List<BzMenu> selectMenus() {
        return menuService.selectMenus();
    }
}


